package com.example.springboot.service;

import com.example.springboot.common.Result;
import com.example.springboot.entity.CComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.entity.SComment;

import java.io.IOException;
import java.util.List;

public interface ICCommentService extends IService<CComment> {

    List<CComment> getCommentsByCreative(Integer creativeId);
    int getCount(Integer creativeId);

    CComment insert(CComment cComment) throws IOException;

    boolean deleteOne(Integer id);

    boolean removeByCreative(Integer creativeId);

    Result adminGet(int pageNum, int pageSize, String content);

    Result processComment(Integer id);
}
